/*
 * 作者:熊猫
 * 日期:2017 - 3 - 20 4 - 33 - 42
 *
 */

package net.lainiao.morethread.Chapter8.demo5;

import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;

/**
 * Created by Administrator on 2017/3/20.
 */
public class Task implements Runnable {
    @Override
    public void run() {
        Logger logger=MyLogger.getLogger(this.getClass().getName());
        logger.entering(Thread.currentThread().getName(),"run()");
        try {
            TimeUnit.SECONDS.sleep(2);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        logger.exiting(Thread.currentThread().getName(),"run()",Thread.currentThread());
    }
}
